package com.example.preview.activity;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.example.preview.R;


/**
 * 主页
 */
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // 1
        findViewById(R.id.btn_pager).setOnClickListener(v -> {
            Intent intent = new Intent(MainActivity.this, PagerActivity.class);
            startActivity(intent);
        });

        // 2
        findViewById(R.id.btn_zoom).setOnClickListener(v -> {
            Intent intent = new Intent(MainActivity.this, ThumbViewActivity.class);
            startActivity(intent);
        });

        // 3
        findViewById(R.id.btn_huge).setOnClickListener(v -> {
            Intent intent = new Intent(MainActivity.this, HugeActivity.class);
            startActivity(intent);
        });

    }
}